package io.zhzhy.licensejwtdemo.license;

import cn.hutool.crypto.digest.DigestUtil;
import cn.hutool.system.oshi.OshiUtil;

/**
 * 机器信息
 */
public class MachineUtil {
    public static String getMachineCode() {
        return DigestUtil.md5Hex16(OshiUtil.getHardware().getDiskStores().get(0).getSerial()).toUpperCase().substring(0, 10);
    }
}
